import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int count = 0;
        int sum = 0;
        int a = sc.nextInt();
        int b = sc.nextInt();
        for (int i = a; i <= b; i++) {
            sum += i;
            if(i >= 0 && i<10) {
                System.out.print("    "+i);
            } else if(i<0 && i>-10){
                System.out.print("   "+i);
            } else if((i <= -10 && i>-100) || i == 100) {
                System.out.print("  "+i);
            }else if(i >= 10 && i < 100) {
                System.out.print("   "+i);
            }else if(i == -100){
                System.out.print(" "+i);
            }
            count++;
            if(count % 5 == 0) {
                System.out.println();
            }
        }
        if(count % 5 != 0) {
            System.out.println();
        }
        System.out.println("Sum = "+sum);
    }
}
